<template>
  <div>
    <ul>
     <li v-for="(item,index) in arry" :key=index>{{item}}</li>
    </ul>
    <button @click="reverse">走一走</button>
  </div>
</template>

<script>
export default {
  data(){
    return{
      arry:['帅哥','美女','程序员']
    }
  },
  methods:{
    reverse(){
    this.arry.push(this.arry[0])
    this.arry.shift()
    }
  }

}
</script>

<style>

</style>